<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="xhtml" encoding="UTF-8"/>

	<xsl:include href="header.xsl"/>
	<xsl:include href="footer.xsl"/>
	<xsl:param name="display_path">../</xsl:param>
	<xsl:param name="stub"/>
	<xsl:param name="exist-url"/>

	<xsl:template match="/">
		<html>
			<head>
				<link rel="stylesheet" type="text/css"
					href="http://yui.yahooapis.com/2.8.2r1/build/grids/grids-min.css"/>
				<link rel="stylesheet" type="text/css"
					href="http://yui.yahooapis.com/2.8.2r1/build/reset-fonts-grids/reset-fonts-grids.css"/>
				<link rel="stylesheet" type="text/css"
					href="http://yui.yahooapis.com/2.8.2r1/build/base/base-min.css"/>
				<link rel="stylesheet" type="text/css"
					href="http://yui.yahooapis.com/2.8.2r1/build/fonts/fonts-min.css"/>
				<!-- Core + Skin CSS -->
				<link rel="stylesheet" type="text/css"
					href="http://yui.yahooapis.com/2.8.2r1/build/menu/assets/skins/sam/menu.css"/>
				<title>
					<xsl:value-of select="/site_info/title"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="//page[@stub = $stub]/title"/>
				</title>
				<link type="text/css" href="{$display_path}style.css" rel="stylesheet"/>
			</head>
			<body class="yui-skin-sam">
				<div id="doc4">
					<xsl:call-template name="header"/>
					<div id="bd">
						<div id="yui-main">
							<div class="yui-b">
								<xsl:value-of select="//page[@stub = $stub]/text"
									disable-output-escaping="yes"/>
							</div>
						</div>						
					</div>
					<xsl:call-template name="footer"/>
				</div>
			</body>			
		</html>
	</xsl:template>
</xsl:stylesheet>
